package com.vca.common.request;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;
import java.util.List;

/**
 * @Description:支付预下单请求参数
 * @author:chenbing
 * @date 2022/12/2 11:23
 */
@Data
@ApiModel(value = "支付预下单请求参数")
public class PaymentPreOrderRequest {
    @ApiModelProperty(value = "状态：wxpay-微信支付，alipay-支付宝，unionpay-云闪付")
    private String payType;

    @ApiModelProperty(value = "支付总金额")
    private BigDecimal totalPrice;

    @ApiModelProperty(value = "订单原始金额(或打折前的金额)")
    private BigDecimal originalPrice;

    @ApiModelProperty(value = "主订单号")
    private String mainOrderId;

    @ApiModelProperty(value = "子订单号集合")
    private List<OrderChild> orderChilds;

    @Data
    @ApiModel(value = "预下单子订单号参数")
    public static class OrderChild {

        @ApiModelProperty("子订单号")
        private String orderIdChild;

        @ApiModelProperty("子订单金额")
        private BigDecimal totalPrice;
    }
}
